package com.zhuiyun.educations.api.address.service;

import com.zhuiyun.educations.api.address.entity.AddressEntity;
import com.zhuiyun.educations.common.response.CommonResult;

/**
 * @ClassName AddressService
 * @Description TODO
 * @Author cjl
 * @Date 2023/6/23 11:38
 **/
public interface AddressService {
    /**
    * @Author cjl
    * @Description 通过用户id查询用户收货地址
    * @Date 2023/6/23 14:22
    * @Return com.zhuiyun.educations.common.response.CommonResult
    * @param id
    */
    CommonResult selectAddressById(Integer id);
    /**
     * @Author cjl
     * @Description 修改用户绑定的地址
     * @Date 2023/6/26 8:54
     * @Return com.zhuiyun.educations.common.response.CommonResult
     * @param addressEntity
     */
    CommonResult updateAddress(AddressEntity addressEntity);
    /**
     * @Author cjl
     * @Description 绑定用户地址
     * @Date 2023/6/26 8:54
     * @Return com.zhuiyun.educations.common.response.CommonResult
     * @param addressEntity
     */
    CommonResult addAddress(AddressEntity addressEntity);
}
